<style>
	@media (min-width: 768px){
		.app-aside-folded .userTitleBar {
		    display: none;
		}
	}
</style>
<div class="aside-wrap">
    <div class="navi-wrap">
        <div class="clearfix hidden-xs text-center" id="aside-user" ng-controller="sideBarCtrl">
            <div class="dropdown" dropdown>
                <a href="javascript:;">
                    <span class="thumb-lg w-auto-folded avatar m-t-sm">
                    	<img src="img/user.png" class="img-full" alt="...">
                    </span>
                </a>
                <a href="javascript:;" class="dropdown-toggle clear userTitleBar" dropdown-toggle="" aria-haspopup="true" aria-expanded="true">
                	<span class="clear">
                        <span class="block m-t-sm">
                        <strong class="font-bold text-lt">{{loginName}}</strong> 
                         <b class="caret"></b> 
                        </span>
                     <!--<span class="text-muted text-xs block">超级管理员</span> -->
                    </span>
                </a>
                <ul class="dropdown-menu animated fadeInRight" style="left: 18px;">
                    <li>
                        <a href="JavaScript:;" ui-sref="app.suim.changePsw">修改密码</a>
                    </li>
                    <li>
                        <a href="JavaScript:;" ng-click="loginOut()">退出登录</a>
                    </li>
                </ul>
            </div>
            <div class="line dk hidden-folded"></div>
        </div>
        <nav ui-nav class="navi" ng-include="'views/blocks/nav.html?v1'"></nav>
    </div>
</div>

<script>
	app.controller("sideBarCtrl",function($scope,$window,$state){
		$scope.loginName = $window.localStorage.getItem("loginName");
		$scope.loginOut = function(){
			$window.localStorage.clear();
        	$state.go('access.signin');
		}
	})
</script>